package c15IO;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.MalformedURLException;

import org.omg.CORBA_2_3.portable.OutputStream;

public class FileStreamTest {


	/**
	 * @param args
	 */
	public static void main(String[] args) {
		File f = new File("cao");
		FileOutputStream fo = null;
		FileInputStream fi = null;
		try {
			fo = new FileOutputStream(f, true);
		} catch (FileNotFoundException e) {
			//TODO Auto-generated catch block
			e.printStackTrace();
		}
		byte b[] = "xxxxxxxxzxcasdasd".getBytes();
		try {
			fo.write(b);
		} catch (IOException e) {
			//TODO Auto-generated catch block
			e.printStackTrace();
		}
//		try {
//			fo.close();
//		} catch (IOException e) {
//			//TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		try {
//			fi=new FileInputStream(f);
//		} catch (FileNotFoundException e2) {
//			//TODO Auto-generated catch block
//			e2.printStackTrace();
//		}
	}

}
